<template>
  <h1>首页</h1>
  <van-button type="primary">主要按钮</van-button>
  <van-button type="success">成功按钮</van-button>

  <van-cell-group>
    <van-cell title="单元格" value="内容" />
    <van-cell title="单元格" value="内容" label="描述信息" />
  </van-cell-group>

</template>
<script setup>
import { POST } from '@/services/request.js';

//常见的匿名函数异步请求,记得最后加()运行
(async () => {
  let result = await POST({
    url: 'index/login',
    params: {
      mobile: '13060808099',
      password: '123'
    }
  })

  console.log(result)
})()
</script>